package stud.aistar.mapper;

import org.apache.ibatis.annotations.Select;
import stud.aistar.entity.Department;

import java.util.List;

/**
 * Created by Jcdz on 2019/9/28.
 */
public interface DepartmentMapper {

    @Select("select * from department")
    List<Department> findAll();

    @Select("select * from department where dept_name=#{value}")
    Department findByName(String dept_name);
}
